package com.angel.architecture.hibernate3;

import org.apache.log4j.Logger;
import org.hibernate.event.PreDeleteEvent;
import org.hibernate.event.PreDeleteEventListener;

/**
 * Clase que implementa el listener utilizado por hibernate en los delete
 * Permite interceptar todo delete y ejecutar acciones previamente.
 *
 * @author IFritzler
 *
 */
public class SecurityPreDeleteEventListener implements PreDeleteEventListener {

	private static final long serialVersionUID = 1L;

	private static final Logger logger = Logger.getLogger(SecurityPreDeleteEventListener.class);

	public boolean onPreDelete(PreDeleteEvent event) {
		logger.debug("SecurityPreDeleteEventListener");
		return false;
	}

}
